<?php

class Login extends CI_Controller{
	function index(){
		if ($this->session->userdata('login')==true){
			$url=base_url().'dashboard';
			redirect($url);
		
		}else{
		$this->load->view('login');
	}
	}
	
	
}
